package org.dreamwork.cai.core;

import org.dreamwork.cai.srf.ServiceRouteFrame;

public final class BroadcastPayload {
    public static final String
        HEARTBEAT = "heartbeat",
        UPDATE    = "update",
        WITHDRAWN = "withdrawn";

    public final String type;
    public ServiceRouteFrame srf;

    public BroadcastPayload (String type) {
        this.type = type;
    }

    public BroadcastPayload (String type, ServiceRouteFrame srf) {
        this.type = type;
        this.srf  = srf;
    }
}
